//
// Created by dg on 2024/1/2.
//

#ifndef MY_APPLICATION_BLTEXTUREFRAME_H
#define MY_APPLICATION_BLTEXTUREFRAME_H

#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>

class BLTextureFrame {
protected:
    bool checkGlError(const char *op);

public:
    BLTextureFrame();
    virtual ~BLTextureFrame();

    virtual bool createTexture() = 0;
    virtual void updateTexImage(int width, int height) = 0;
    virtual bool bindTexture(GLint *uniformSamplers) = 0;
    virtual void dealloc() = 0;
};

#endif //MY_APPLICATION_BLTEXTUREFRAME_H
